home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 - Inside Community Club / Acrobat Pro 6 D.bin / installer / Data1.cab / HTML2PDF.api / EXVW / 4505 < prev    next >
Encoding:
Text File  |  2003-05-15  |  3.0 KB  |  91 lines

  1. gStrColors            = '$$$/Dialogs/HTML2PDF/TextSettings/General/Colors';
  2. gStrText            = '$$$/Dialogs/HTML2PDF/TextSettings/General/Text';
  3. gStrBackground        = '$$$/Dialogs/HTML2PDF/TextSettings/General/Background';
  4. gStrLineWrapOptions    = '$$$/Dialogs/HTML2PDF/TextSettings/General/LineWrapOptions';
  5. gStrWrapLines        = '$$$/Dialogs/HTML2PDF/TextSettings/General/WrapLines';
  6. gStrReflow            = '$$$/Dialogs/HTML2PDF/TextSettings/General/Reflow';
  7. gStrLayoutOptions    = '$$$/Dialogs/HTML2PDF/TextSettings/General/LayoutOptions';
  8. gStrLimitLines        = '$$$/Dialogs/HTML2PDF/TextSettings/General/LimitLines';
  9. gStrMaxLines        = '$$$/Dialogs/HTML2PDF/TextSettings/General/MaxLines';
  10.  
  11. gColorTextWidth = max    ( zstring_width( zstring: gStrText )
  12.                         , zstring_width( zstring: gStrBackground )
  13.                         ) + max_char_width();
  14. gColorWellWidth = 22;
  15. gTestWidth1 = gColorTextWidth + gColorWellWidth + max_char_width();
  16.  
  17. gMaxLinesEditWidth = max_char_width() * 3;
  18. gMaxLinesWidth = zstring_width( zstring: gStrMaxLines ) + gMaxLinesEditWidth + gMarginWidth;
  19. gTestWidth2 = max    ( gMaxLinesWidth
  20.                     , zstring_width( zstring: gStrWrapLines )
  21.                     , zstring_width( zstring: gStrReflow )
  22.                     , zstring_width( zstring: gStrReflow )
  23.                     );
  24.  
  25. gColumnWidth = max( gTestWidth1, gTestWidth2 )  / 2;
  26.  
  27. dialog( )
  28. {
  29.     view( align_children: align_left )
  30.     {
  31.         cluster( name: gStrColors )
  32.         {
  33.             view( align_children: align_row )
  34.             {
  35.                 view( align_children: align_row, width: gColumnWidth )
  36.                 {
  37.                     view( align_children: align_left, width: gColorTextWidth )
  38.                     {
  39.                         static_text( item_id: 'st01', name: gStrText, next_tab: 'colr' );
  40.                     }
  41.                     view( align_children: align_right )
  42.                     {
  43.                         button( item_id: 'colr', picture: true, height: 20, width: gColorWellWidth, next_tab: 'st02' );
  44.                     }
  45.                 }
  46.                 gap();
  47.                 view( align_children: align_row, width: gColumnWidth )
  48.                 {
  49.                     view( align_children: align_left, width: gColorTextWidth )
  50.                     {
  51.                         static_text( item_id: 'st02', name: gStrBackground, next_tab: 'back' );
  52.                     }
  53.                     view( align_children: align_right )
  54.                     {
  55.                         button( item_id: 'back', picture: true, height: 20, width: gColorWellWidth, next_tab: 'wrap' );
  56.                     }
  57.                 }
  58.             }
  59.         }
  60.         cluster( name: gStrLineWrapOptions )
  61.         {
  62.             view( align_children: align_row )
  63.             {
  64.                 view( align_children: align_row, width: gColumnWidth )
  65.                 {
  66.                     check_box(item_id: 'wrap', name: gStrWrapLines, next_tab: 'refl' );
  67.                 }
  68.                 view( align_children: align_row, width: gColumnWidth )
  69.                 {
  70.                     check_box(item_id: 'refl', name: gStrReflow, next_tab: 'liml' );
  71.                 }
  72.             }
  73.         }
  74.         cluster( name: gStrLayoutOptions )
  75.         {
  76.             view( align_children: align_row )
  77.             {
  78.                 view( align_children: align_row, width: gColumnWidth )
  79.                 {
  80.                     check_box(item_id: 'liml', name: gStrLimitLines, next_tab: 'st03' );
  81.                 }
  82.                 gap();
  83.                 view( align_children: align_row, width: gColumnWidth )
  84.                 {
  85.                     static_text( item_id: 'st03', name: gStrMaxLines, next_tab: 'mxln' );
  86.                     edit_text(item_id: 'mxln', PopupEdit: true, numeric: true, width: gMaxLinesEditWidth );
  87.                 }
  88.             }
  89.         }
  90.     }
  91. }